<extend name="Public:User/base"/>
<block name="body">

<div style="width: 100%;height: 63px;background-color: #eb5d22;color: #FFF;font-size: 40px;">
    <span style="padding-left: 113px;">购物车</span>
</div>
<!--top-bar end-->
<!--container start-->
 <div class="container" style="margin-top: 80px;">
    <div class="row">
        <div class="col-sm-12 col-lg-12" role="form">
            <form name="" action="" method="post">
                <table class="table text-center" style="border: 2px solid #F5F5F5;">
                    <thead style="background-color: #f5f5f5">
                        <tr>
                            <td style="width: 10%;"><label><input type="checkbox" class="all">全选</label></td>
                            <td style="width: 45%">商品信息</td>
                            <td style="width: 10%">单价</td>
                            <td style="width: 15%">数量</td>
                            <td style="width: 10%">订单金额（元）</td>
                            <td style="width: 10%">操作</td>
                        </tr>
                    </thead>
                    <tbody>
                    <foreach name="cartInfo" item="v">
                        <tr class="cart">
                            <td><label><input type="checkbox" name="check" class="cart-id" value="{$v['cartid']}">
                                <input type="hidden" value="{$v['isbingo']}" class="isbingo">
                                <input type="hidden" value="{$v['goods_id']}" class="goods-id"></label>
                            </td>
                            <td class="text-left">
                                <a href="#"><img src="{$Think.const.IMG_URL}/index/其他奖品/8-1.png" width="80" height="80">{$v['goodsname']}</a>
                            </td>
                            <td><label><input type="hidden" class="price" value={$v['unitprice']}.'.00'><!--单价--></label>{$v['unitprice']}</td>
                            <td>
                                <if condition="$v.isbingo eq 1">
                                <div><label><input type="hidden" id="amount" class="text-center amount" value={$v['goodsnumber']} style="width: 80px;">{$v['goodsnumber']}</label></div>
                                    <else/>
                                    <div class="input-group">
                                        <!--<span class="operate h6" style="padding:auto -5px;font-weight: 900;">—</span>-->
                                        <span class="operate input-group-addon">—</span>
                                        <input type="text" class="text-center amount form-control" value={$v['goodsnumber']} style="" onclick="javascript:select();">
                                        <span class="operate input-group-addon">+</span>
                                    </div>
                                </if>
                                <p class="text-center">有货</p>
                            </td>
                            <td><div class="showtotal"><label>
                                <input type="hidden" class="total" value="">
                            </label>{$v['totalmoney']}</div></td>
                            <td>
                                <div class="btn-group-vertical btn-group-sm">
                                    <div style="cursor: pointer;" class="delete">删除</div><br>
                                    <button class="put-in-collect btn-text" type="button">移入收藏夹</button>
                                </div>
                            </td>
                        </tr>
                    </foreach>
                    </tbody>
                </table>
                <div id="tfooter">
                    <div class="left">
                        <span>
                            <label><input type="checkbox" class="all">全选</label>
                        </span>
                        <span style="cursor: pointer;" class="delete-all">删除选中的商品</span>
                        <!--<span style="cursor: pointer;" onclick="window.location.href ='{:U(\'Home/Collect/addCollect?goods_ID=3\')}'">加入收藏夹}</span>-->
                    </div>
                    <div onclick="window.location.href = '../bingo/paymentorders.html'" id="reckoning">去结算</div>
                    <div class="right">
                        <span>已选商品<span id="allamount" style="color: #eb5d22;">3</span>件</span>
                        <span>合计（不含运费）:<span id="alltotal" style="color: #eb5d22;font-size: 30px;">0</span></span>
                    </div>
                </div>
            </form>
        </div>
    </div>
 </div>
</block>
<block name="guess"></block>

